package com.itheima.test;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;

public class Test02 {
    public static void main(String[] args) {


        //计算自己活了多少天
        LocalDate now = LocalDate.now();
        LocalDate birthday = LocalDate.of(2002, 11, 11);
        long between = ChronoUnit.DAYS.between(birthday, now);
        System.out.println(between);


    }
}
